import * as mine from "../../api/mine";
var appInst =  getApp();

Page({
    data: {
        info:{}
    },
    onShow(){
        mine.get_user_info()
            .then((res)=>{
                this.setData({
                    info:res
                })
            })
    },
    handle_user_name(){
        wx.navigateTo({
            url: '/pages/updateName/updateName?name='+this.data.info.userName
        });
    },
    handle_to_mobile(){
        wx.navigateTo({
            url: '/pages/updateMobile/updateMobile?mobile='+this.data.info.mobile
        });
    }
})
